package com.sourceQ.system.dto.message;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Map;

/**
 * @author: SourceQ
 * @create: 2024-04-28 17:35
 * @Description:
 */
@Schema(description = "管理后台 - 邮件发送 Req VO")
@Data
public class MailTemplateSendReqDTO implements Serializable {


    @Schema(description = "接收邮箱", example = "7685413@qq.com")
    @NotEmpty(message = "接收邮箱不能为空")
    private String mail;

    @Schema(description = "模板编码", example = "test_01")
    @NotNull(message = "模板编码不能为空")
    private String templateCode;

    @Schema(description = "模板参数")
    private Map<String, Object> templateParams;
}
